package com.usian.service;

import com.usian.common.untils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @projectName: 2210A-project1
 * @package: com.usian.service
 * @className: CatalogFeignService
 * @author: 莫洪维
 * @email: 1204315800@qq.com
 * @description: TODO
 * @date: 2023/8/25 20:07
 */
@FeignClient("day09Catalog")
public interface CatalogFeignService {

    /**
     * 根据课程id查询目录方法
     * */
    @RequestMapping(value = "/catalog/findAll",method = RequestMethod.GET)
    public Result findAll(@RequestParam("courseId") Long id);
}
